package com.lcxw.hxzbadmin.service.configservice;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.lcxw.hxzbadmin.dao.configmapper.CarouselMapper;
import com.lcxw.hxzbadmin.entity.configbean.YwpdCarousel;

@Component
public class CarouselService {

    @Resource
    CarouselMapper carouselMapper;

    public int deleteByPrimaryKey(Integer id){
        return carouselMapper.deleteByPrimaryKey(id);
    }

    public int insert(YwpdCarousel record){
        return carouselMapper.insert(record);
    }

    public YwpdCarousel selectByPrimaryKey(Integer id){
        return carouselMapper.selectByPrimaryKey(id);
    }

    public List<YwpdCarousel> selectAll(){
        return carouselMapper.selectAll();

    }

    public int updateByPrimaryKey(YwpdCarousel record){
        return carouselMapper.updateByPrimaryKey(record);
    }


}
